Skip to content

fix(lab-ops-hub): WHATWG parity for symbol hosts in container validator (#8428) - #9735

Merged
dezren39 merged 1 commit into
mainfrom
queue/14507-7715-labops-validator
Nov 14, 2026
Merged

dezren39 merged 1 commit into
mainfrom
queue/14507-7715-labops-validator

Conversation

@dezren39

@dezren39 dezren39 commented Nov 14, 2026 •

Copy link
Copy Markdown
Member

Fixes the symbol-host parity conflict in #8428 (the recorded blocker for #7715, task 14507).

Decision (recorded on #8428)

Match WHATWG/Worker. The #588 category check refused every punctuation/symbol/separator-category character on the premise that the Worker refuses currency/math symbols. Verified false for the WHATWG URL path the Worker actually uses — Node domainToASCII (this run and #8428's):

  • accepted: 😀 (So) -> xn--e28h, ¤ (Sc) -> xn--bba, × (Sm) -> xn--rca, € (Sc) -> xn--lzg, ¢ (Sc) mid-label -> xn--example-3ha
  • refused: ¨ (Sk), ´ (Sk), ‾ (Po) -> empty

So the container suite failed on clean main (the #659 A-label expectation) while an older #588 test pinned Sc refusals: the two validator copies disagreed in both directions.

Change

In _judge_idna_label (pkgs/lab-ops-hub/container/app.py): the blanket P/S/Z refusal becomes P/Z plus Sk; Co/Cs refusal and the CONTEXTO exception list are unchanged. So/Sc/Sm are accepted. The code comment records the parity rationale, including why this is not an SSRF weakening: these labels resolve through ordinary public DNS to the same A-label form the Worker certifies, and the private/loopback/link-local refusals live in the address checks, not this category rule.

Tests: the two Sc cases in test_a_label_must_be_its_uts46_mapped_form_and_disallowed_free move to accepted controls with the reason recorded; new test_symbol_hosts_match_whatwg_parity pins the Node-verified battery in raw and A-label forms (accept So/Sc/Sm; refuse Sk raw and decoded, and Po A-labels).

Verification

  • Reproduced before the fix on clean main: test_container_validate 78 tests, 1 failure (the 😀 A-label case, app.py category refusal).
  • After the fix: full Python suite (unittest discover, pinned venv from container/requirements.txt) 82 tests OK; TypeScript suite (node --test) 116 pass, 0 fail.
  • Independent Node domainToASCII probe of the whole battery matches the container's post-fix behavior case for case.

Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…or (#8428)

The #588 category check in _judge_idna_label refused every P/S/Z-category character on the premise that the Worker refuses currency/math symbols. That premise is false for the WHATWG URL path the Worker uses: Node domainToASCII accepts the So/Sc/Sm symbols (emoji -> xn--e28h, cent/euro/currency signs) and refuses the Sk modifier symbols and punctuation/separators. The container suite therefore failed on clean main (the #659 A-label test) while an older #588 test pinned Sc refusals — the two copies disagreed. Parity rule: refuse P/Z categories and Sk, keep Co/Cs refusal and the CONTEXTO exceptions; accept So/Sc/Sm. Rationale recorded in the code comment: accepting these labels is not an SSRF weakening (they resolve through ordinary public DNS to the same A-label the Worker certifies; address-class refusals live elsewhere). Tests: existing Sc refusal cases moved to accepted controls, new test_symbol_hosts_match_whatwg_parity covers the Node-verified battery in raw and A-label forms. Python suite 82 tests OK; TypeScript suite 116 pass.
@dezren39
dezren39 requested a review from a team as a code owner November 14, 2026 05:05
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-14T05:05:38.963741Z
We couldn’t complete this review. Comment @codex review to try again.
dcdf531 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@coderabbitai

coderabbitai Bot commented Nov 14, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 34 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 39e25404-35d0-4e7d-8bd6-a1f9476e4064
Commits

Reviewing files that changed from the base of the PR and between 65876ae and dcdf531.

Files selected for processing: 2

  • pkgs/lab-ops-hub/container/app.py
  • pkgs/lab-ops-hub/test/test_container_validate.py
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

audit:complete PR fully implemented spawning issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant